package com.moter.demo01.io.in_outputstream.filestream;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileOutputStreamDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream outputStream = new FileOutputStream("E:\\myCode\\JUC\\src\\main\\java\\com\\moter\\demo01\\io\\123.txt");
        outputStream.write(new String("123").getBytes());
        outputStream.flush();
        outputStream.close();
    }
}